#!/bin/bash

#host=127.0.0.1
host=115.182.77.140
port=6379
passwd=false
count=20000
size=10
thrs=8

logfile="result-"$host".log"
echo "start test " > $logfile

for t in 2, 4, 8, 16
do
for i in {1..12}
do
echo "running test size $t $i"
echo "============================== $i ==========================" >> $logfile
./bin/syncredis $host $port $passwd $count $i $thrs 1 >> $logfile
./bin/syncredis $host $port $passwd $count $i $thrs 0 >> $logfile
done
